2] How do I make glass?

You can use the following Attribute setting for a default glass:
Object Attribs R G B Value
Color 0 0 0
Reflect 0 0 0
Filter 255 255 255
Specular 255 255 255
Dithering 255
Hardness 255
Roughness 0
Shininess 0 *Very Important!*
Fog Lenght 0.0
Index of refraction 1.50
Phong On

This should give you glass.

One thing many people get confused by this:
  1. Shininess must be set to ZERO. If you set this to anything but 0, the FILTER setting will not work. This is just the way Imagine works since FILTER usage assumes shininess automatically.
  2. No background. To get glass, you need surroundings. If you render a glass cup on a pure black screen, you'll probably just see the highlights. Adding global colors for Scanline and Ray Trace will give your object something to refract.
  3. Ray Trace. To get refraction of surrounding objects exactly, you need to Trace, though scanline WILL approximate refractivity.


[Contents] [Previous] [Next]
owl-bar
Pages made from the amigaguide version with the help of Mike's RDAG2HTML and the fabulous Dietmar's GoldED with the WWW extension v2.
[email Ernie]